package cn.smart.epic.modular.system.warpper;

import cn.smart.epic.common.constant.factory.ConstantFactory;
import cn.smart.epic.common.warpper.BaseControllerWarpper;
import com.alibaba.fastjson.JSONObject;

import java.util.List;

/**
 * @Auther Uncle_Z
 * @date 2018/8/28 17:55
 * @Email:2545375@qq.com
 * @Descrition
 * @since 1.0
 */

public class RoleWarpper extends BaseControllerWarpper {

    public RoleWarpper(List<JSONObject> list) {super(list);}

    @Override
    protected void warpTheMap(JSONObject map) {
        map.put("pName", ConstantFactory.me().getSingleRoleName(map.getInteger("pid")));
    }
}
